package com.linkhub.oms.data.sync.service;

import com.linkhub.oms.common.enums.mp.DataSyncTypeEnum;
import com.linkhub.oms.data.sync.api.shopify.domain.dto.DataSyncRecordDTO;

/**
 * @Description: DataSyncRecordBizService
 * @Author: echo
 * @Date: 2024/3/23 09:55
 * @Version: 1.0
 */
public interface DataSyncRecordBizService {

    /**
     * 获取最新同步的更新时间
     *
     * @param sysShopId    sysShopId
     * @param dataSyncType dataSyncType
     * @return shopify updated_at_min
     */
    String getLatestSyncUpdateTime(String sysShopId, DataSyncTypeEnum dataSyncType);

    /**
     * 保存商店信息同步记录
     *
     * @param dataSyncRecordDTO dataSyncRecordDTO
     */
    void saveRecord(DataSyncRecordDTO dataSyncRecordDTO);
}
